package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IInventoryDao;
import com.guoxue.domain.InventoryVo;
import com.guoxue.service.IInventoryService;
@Service("inventoryService")
public class InventoryServiceImpl implements IInventoryService {
	@Resource
	private IInventoryDao dao;

	@Override
	public void saveInventory(InventoryVo inventoryVo) {
		dao.saveInventory(inventoryVo);
	}

	@Override
	public List<InventoryVo> getInventoryList(Integer uid) {
		return dao.getInventoryList(uid);
	}

	@Override
	public Long getInventoryTotal(int uid) {
		return dao.getInventoryTotal(uid);
	}

	@Override
	public InventoryVo getInventory(int uid) {
		return dao.getInventory(uid);
	}

	@Override
	public InventoryVo getInventoryByUidAndGoodsId(Integer uid, Integer goodsId) {
		return dao.getInventoryByUidAndGoodsId(uid,goodsId);
	}

	@Override
	public List<InventoryVo> getInventoryGoodsTypeList(Integer uid, Integer typeId) {
		return dao.getInventoryGoodsTypeList(uid,typeId);
	}

	@Override
	public List<InventoryVo> getCurrentTimeData(String d) {
		return dao.getCurrentTimeData(d);
	}
}
